﻿CREATE PROCEDURE [dbo].[TempArticles_DeleteDuplicates]
AS
DELETE FROM [TempArticles]
WHERE Id NOT IN
(
    SELECT MIN(Id)
    FROM [TempArticles]
    GROUP BY RangeReviewId, Code, UOM
)